import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class SGuildDefenseInfo
    
    export  class SGuildDefenseInfo extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SGuildDefenseInfo();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeBool(this.hasOpen);
            arg1.writeBool(this.todayOpen);
            arg1.writeInt(this.weekCount);
            arg1.writeInt(this.difficult);
            arg1.writeInt(this.historyDifficulty);
            arg1.writeInt(this.score);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.hasOpen = arg1.readBool();
            this.todayOpen = arg1.readBool();
            this.weekCount = arg1.readInt();
            this.difficult = arg1.readInt();
            this.historyDifficulty = arg1.readInt();
            this.score = arg1.readInt();
            return;
        }

        public /* const */_type: int=420;

        public /* var */hasOpen: Boolean;

        public /* var */todayOpen: Boolean;

        public /* var */weekCount: int;

        public /* var */difficult: int;

        public /* var */historyDifficulty: int;

        public /* var */score: int;

        public static /* var */_regist: SGuildDefenseInfo;
    }

            SGuildDefenseInfo._regist = new SGuildDefenseInfo(true);
        